<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="{{ asset('admin_style/css/pintuer.css') }}">
    <link rel="stylesheet" href="{{ asset('admin_style/css/admin.css') }}">
    <script src="{{asset('admin_style/js/jquery.js')}}"></script>
    <script src="{{asset('admin_style/js/pintuer.js')}}"></script>
</head>
<style>
    .col{color:red}
</style>
<body>
<div class="panel admin-panel margin-top">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span> 资料修改</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="{{url('/user/edit_do')}}" enctype="multipart/form-data">
            {{ csrf_field() }}
            <div class="form-group">
                <div class="label">
                    <label>会员名称：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name="u_name" value="{{$arr->u_name}}" />
                    @if($errors->has('u_name'))
                        <span class="col">{{$errors->first('u_name')}}</span>
                    @endif
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>性别：</label>
                </div>
                <div class="field">
                    <div class="product-mulde product-mulde-a">
                        <ul>
                            @if($arr->u_sex == "女")
                            <li>
                                <input type="radio" name="u_sex"  value="男">男
                                <input type="radio" name="u_sex" checked="checked" value="女">女
                            </li>
                                @else
                                <li>
                                    <input type="radio" name="u_sex" checked="checked"  value="男">男
                                    <input type="radio" name="u_sex" value="女">女
                                </li>
                            @endif
                        </ul>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>手机：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name='u_phone' value="{{$arr->u_phone}}"/>
                    @if($errors->has('u_phone'))
                        <span class="col">{{$errors->first('u_phone')}}</span>
                    @endif
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>头像：</label>
                </div>
                <div class="field">
                    <img src="{{asset('admin_style/uploads')}}/{{$arr->u_portrait}}" width="60px">
                    <input type="file" name="slogo" id="1" style="display: none" />
                    <input type="button" class="button bg-blue margin-left" id="image1" value="+ 浏览上传" onclick="document.getElementById(1).click();">
                </div>
            </div>


            <input type="hidden" name="uid" value="{{$arr->uid}}">
            <div class="form-group">
                <div class="text-center">
                    <div class="field">
                        <input class="button bg-red" type="submit" value="确定">
                        <a class="button bg-red">重置</a>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>
